package cn.office.param;

import com.alibaba.excel.annotation.ExcelIgnore;
import com.alibaba.excel.annotation.ExcelProperty;
import com.alibaba.excel.annotation.format.DateTimeFormat;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

import java.io.Serializable;
import java.util.Date;

@Data
@AllArgsConstructor
@NoArgsConstructor
public class ExcelDemoParam implements Serializable {
    private static final long serialVersionUID = 5113569576235368704L;

    @ExcelProperty("用户姓名")
    private String userName;
    @ExcelProperty("用户年龄")
    private Integer age;
    @DateTimeFormat("yyyy年MM月dd日HH时mm分ss秒")
    @ExcelProperty("用户生日")
    private Date birthday;
    @ExcelProperty("用户地址")
    private String address;
    @ExcelProperty("用户手机号")
    private String mobile;
    /**
     * @ExcelIgnore 忽略这个字段
     */
    @ExcelIgnore
    private String email;
}
